<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Edit Subject</title>
</head>

<body bgcolor="#CCCCCC">
<br>
<table width="800" height="494" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th height="62" colspan="2" style=" background-color:#F90" scope="col"><font color="#FFFFFF">Exam Room Management<font></th>
  </tr>
  <tr>
    <th width="190" height="427" scope="row" style="background-color:#F90" > <div align="center"><b><font color="#FFFFFF">Menu<font><br><br>
      <center xmlns="http://www.w3.org/1999/xhtml">
		<!-- <br/><input type="button" value="Student" onClick="window.location.href='http://127.0.0.1:8000/student/'"/><br/>
		<br/><input type="button" value="Subject" onClick="window.location.href='http://127.0.0.1:8000/subject/'"/><br/>
		<br/><input type="button" value="Room" onClick="window.location.href='http://127.0.0.1:8000/room/'"/><br/> -->
		<br/><input type="button" value="Back" onClick="window.location.href='http://127.0.0.1:8000/subject'"/>
		</center>
    </div>
    </th>
    <td width="610" style="background-color:#FFF"> <center>
    	<h3>Subject Information</h3><br>
    	{% if subj %}
			{% if errors %}
		        <ul>
		            {% for error in errors %}
		            	<p style="color: red;">{{ error }}</p>
		            {% endfor %}
		        </ul>
			{% endif %}
	    	<p>Fill information in a text box that you want to change</p>
			<form action="/subject/edit/{{ subj.subjID }}" method="get">    	
	    	<table class="myTable">
	        <tr><th>Subject</th><th>Old Information</th><th>New Information</th></tr>	                	
	        <tr><td>Subject ID</td><td>{{ subj.subjID }}</td><td><center><input type="text" maxlength="20" name="id"></center></td></tr>
	        <tr><td>Subject Name</td><td>{{ subj.subjName }}</td><td><center><input type="text" maxlength="20" name="name"></center></td></tr>	                
        </table>
        	<br><br><input type="submit" value="Edit">
        </form>
        {% else %}
        	<p>No Information.</p>
        {% endif %}
        </center>
    </td>
  </tr>
</table>
<br>
<br>
<br>
</body>
</html>
